#include "../os_common.h"



// If you want to receive 802.1x packet, use MDS_802_1X_RECEIVE_ENABLE( true );
// Use MDS_802_1X_RECEIVE_ENABLE( false ) to turn off the ability, 
// the MDS will indicate the packet to upper module.
VOID EAP_ReceivePacket( IN PVOID Adapter, IN PVOID pRxL1 )
{
	PWB32_ADAPTER pAdapter=(PWB32_ADAPTER)Adapter;
	PRXLAYER1 pRxLayer1 = (PRXLAYER1)pRxL1;
	PUCHAR buffer = pRxLayer1->BufferQueue[0].pBufferAddress;
	USHORT length = pRxLayer1->BufferQueue[0].BufferSize;

	//To process the 802.1x packet
	#ifdef _WPA_PSK_DEBUG	
		static UCHAR PacketCount=1;
		WBDEBUG(("Start4WayStateMachin\n"));
		WBDEBUG(("Receive Packet Address(%08x)\n", buffer));
		WBDEBUG(("Receive Packet(%d)\n", PacketCount++));
		DataDmp(buffer, length, 0);
	#endif
	
	Start4WayStateMachine(pAdapter, length, (PVOID)buffer, 0, NULL);
}



// Sending packet by calling the follow function. the function will copy the data into
// internal buffer and sending immediately.
// VOID EAP_SendPacket( Adapter, buffer, size )


